package atlantik.ui;

import java.awt.BorderLayout;

import atlantik.game.Atlantik;

public class PlayingState implements GUIState {

	private final Board board;

	private final DetailsView details;

	public PlayingState(Atlantik client) {
		board = new Board(client);
		details = new DetailsView(client);

		board.setDisplay(details);
	}

	public void begin(GUI gui) {
		gui.add(board, BorderLayout.CENTER);
	}

	public void end(GUI gui) {
		gui.remove(board);
	}

}
